package org.yray.sip.handler.err;


import lombok.extern.slf4j.Slf4j;
import org.yray.sip.base.SipMsg;
import org.yray.sip.constant.SipCodeEnum;
import org.yray.sip.handler.MessageHandler;
import org.yray.sip.server.SipServerContext;


@Slf4j
public class Busy486Handler extends MessageHandler {

    /**
     * 分机拒接
     * @param sipMsg
     * @param ssc
     * @return
     */
    @Override
    public String[] handler(SipMsg sipMsg, SipServerContext ssc) {
        log.info("sip 486 busy here");
        sipMsg.setSipCode(SipCodeEnum.SIP_486);
        String result=handlerErr(sipMsg,ssc);
        return new String[]{result};
    }


}
